<extend name="Public/layout"/>
<block name="head">
    <link rel="stylesheet" href="__PUBLIC__css/setting.css">
<style type="text/css">
.footer{
    display: none;
}
</style>

 </block>
<block name="main">
    <div class="form">
        <div class="form-group">
            <a href="/Home/Person/change_nickname">
                <div class="left">
                    <span>{$user.nickname}</span>
                </div>
                <div class="right">
                    <span>修改</span>
                    <div class="arrow-wrapper">
                        <span class="arrow-right"></span>
                    </div>
                </div>
            </a>
        </div>
        <div class="form-group">
            <a href="/Home/Person/change_password">
                <div class="left">
                    <span>登录密码</span>
                </div>
                <div class="right">
                    <span>修改</span>
                    <div class="arrow-wrapper">
                        <span class="arrow-right"></span>
                    </div>
                </div>
            </a>
        </div>
		<if condition="$user.card_status eq 1">
        <div class="form-group">
            <a href="javascript:">
                <div class="left">
                    <span>实名认证</span>
                </div>
                <div class="right">
                    <span>{$user.realname_m}</span>
                    <div class="arrow-wrapper">
                        <span class="arrow-right"></span>
                    </div>
                </div>
            </a>
        </div>
		<else/>
		<div class="form-group">
            <a href="/Home/Person/relaname">
                <div class="left">
                    <span>实名认证</span>
                </div>
                <div class="right">
                    <span>立即认证</span>
                    <div class="arrow-wrapper">
                        <span class="arrow-right"></span>
                    </div>
                </div>
            </a>
        </div>
		</if>
		<empty name="user.bank_card ">
        <div class="form-group">
			<if condition="$user.card_status eq 1">
            <a href="/Home/Person/bind_bank_card">
			<else/>
			<a href="javascript:" onclick="no_id_card()"> 
			</if>
                <div class="left">
                    <span>银行卡</span>
                </div>
                <div class="right">
                    <span>绑定银行卡</span>
                    <div class="arrow-wrapper">
                        <span class="arrow-right"></span>
                    </div>
                </div>
            </a>
        </div>
		</empty>
        <div class="form-group">
            <a href="/Home/Person/change_phone">
                <div class="left">
                    <span>手机号码</span>
                </div>
                <div class="right">
                    <span>{:hidtel($user[user_phone])}</span>
                    <div class="arrow-wrapper">
                        <span class="arrow-right"></span>
                    </div>
                </div>
            </a>
        </div>
    </div>

    <div class="form">
        <div class="form-group">
            <a href="tel:400-999-2337">
                <div class="left">
                    <span>客服热线</span>
                </div>
                <div class="right">
                    <span>400-999-2337</span>
                </div>
            </a>
        </div>
        <div class="form-group">
            <a href="#">
                <div class="left">
                    <span>在线QQ</span>
                </div>
                <div class="right">
                    <span>1000828</span>
                </div>
            </a>
        </div>
    </div>
	     
 <div class="exit" onclick="login_out()">
        <button>退出登录</button>
    </div>

</block>
 <block name="js">
    <script type="text/javascript">
	 function login_out(){
        $.post("{:U('user/loginout')}",{},function(res){
             layer.open({
                content:"退出成功！"
                ,skin: 'msg'
                ,time: 1 //2秒后自动关闭
                ,end:function(){location.href='/'}
              });
        })
    }
	
	function no_id_card(){
         layer.open({
            content:"您还未进行实名认证！"
            ,skin: 'msg'
            ,time: 1 //2秒后自动关闭
          });
    }
    </script>
</block>